package com.twu.biblioteca;

/**
 * Created with IntelliJ IDEA.
 * User: juliofarah
 * Date: 9/29/13
 * Time: 9:44 PM
 * To change this template use File | Settings | File Templates.
 */
public class Movie{

    private String name;
    private String director;
    private int year;
    private String rating;

    public Movie(String name, int year, String director, String rating) {
        this.name = name;
        this.year = year;
        this.director = director;
        this.rating = rating;
    }

    public Movie(){

    }

    public String getDirector() {
        return director;
    }

    public int getYear() {
        return year;
    }

    public String getRating() {
        return rating;
    }

    public String getName() {
        return name;
    }

    @Override
    public String toString() {
        return this.name + " | " + this.year + " | "
                + this.director + " | " + this.rating + ".\n";
    }

}
